package com.itfitness.cppdemoone.activity

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.itfitness.cppdemoone.R
import com.itfitness.cppdemoone.databinding.ActivityAddweightBinding
import com.itfitness.cppdemoone.databinding.ActivityBoundaryfillBinding

/**
 *
 * @Description:     java类作用描述 图像融合
 * @Author:         作者名
 * @CreateDate:     2022/2/23 17:01
 * @UpdateUser:     更新者：
 * @UpdateDate:     2022/2/23 17:01
 * @UpdateRemark:   更新说明：
 */
class AddWeightActivity:AppCompatActivity(){
    private lateinit var addWeightBinding: ActivityAddweightBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        addWeightBinding = DataBindingUtil.setContentView(this, R.layout.activity_addweight)
        val bitmapSrc = BitmapFactory.decodeResource(resources,R.drawable.ic_xingkong)
        val bitmapSrc2 = BitmapFactory.decodeResource(resources,R.drawable.ic_laohu)
        addWeightBinding.activityAddweightImgDest.setImageBitmap(imageAddWeight(bitmapSrc,bitmapSrc2))
    }


    external fun imageAddWeight(bitmapSrc:Bitmap,bitmapSrc2:Bitmap):Bitmap
}